<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021/1/21
  Time: 16:02
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page import="java.util.*,java.text.SimpleDateFormat" %>
<html>
<head>
    <title>问候</title>
</head>
<body>
<%
   String str="教育改变生活";
   out.println("<h1>"+str+"</h1>");
   Date d=new Date();
   //out.print(d);
   SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd hh");
   String s2=df.format(d);
   out.print("<br/>");
   out.print(s2);
   //表达式
%>
<h3>
    <%=s2%>
</h3>
</body>
</html>
